package com.ruoyi.teach.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teach.mapper.NbChapterKnowledgePointsMapper;
import com.ruoyi.teach.domain.NbChapterKnowledgePoints;
import com.ruoyi.teach.service.INbChapterKnowledgePointsService;

/**
 * 章节知识点关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class NbChapterKnowledgePointsServiceImpl implements INbChapterKnowledgePointsService 
{
    @Autowired
    private NbChapterKnowledgePointsMapper nbChapterKnowledgePointsMapper;

    /**
     * 查询章节知识点关联
     * 
     * @param id 章节知识点关联主键
     * @return 章节知识点关联
     */
    @Override
    public NbChapterKnowledgePoints selectNbChapterKnowledgePointsById(Long id)
    {
        return nbChapterKnowledgePointsMapper.selectNbChapterKnowledgePointsById(id);
    }

    /**
     * 查询章节知识点关联列表
     * 
     * @param nbChapterKnowledgePoints 章节知识点关联
     * @return 章节知识点关联
     */
    @Override
    public List<NbChapterKnowledgePoints> selectNbChapterKnowledgePointsList(NbChapterKnowledgePoints nbChapterKnowledgePoints)
    {
        return nbChapterKnowledgePointsMapper.selectNbChapterKnowledgePointsList(nbChapterKnowledgePoints);
    }

    /**
     * 新增章节知识点关联
     * 
     * @param nbChapterKnowledgePoints 章节知识点关联
     * @return 结果
     */
    @Override
    public int insertNbChapterKnowledgePoints(NbChapterKnowledgePoints nbChapterKnowledgePoints)
    {
        return nbChapterKnowledgePointsMapper.insertNbChapterKnowledgePoints(nbChapterKnowledgePoints);
    }

    /**
     * 修改章节知识点关联
     * 
     * @param nbChapterKnowledgePoints 章节知识点关联
     * @return 结果
     */
    @Override
    public int updateNbChapterKnowledgePoints(NbChapterKnowledgePoints nbChapterKnowledgePoints)
    {
        return nbChapterKnowledgePointsMapper.updateNbChapterKnowledgePoints(nbChapterKnowledgePoints);
    }

    /**
     * 批量删除章节知识点关联
     * 
     * @param ids 需要删除的章节知识点关联主键
     * @return 结果
     */
    @Override
    public int deleteNbChapterKnowledgePointsByIds(Long[] ids)
    {
        return nbChapterKnowledgePointsMapper.deleteNbChapterKnowledgePointsByIds(ids);
    }

    /**
     * 删除章节知识点关联信息
     * 
     * @param id 章节知识点关联主键
     * @return 结果
     */
    @Override
    public int deleteNbChapterKnowledgePointsById(Long id)
    {
        return nbChapterKnowledgePointsMapper.deleteNbChapterKnowledgePointsById(id);
    }
}
